import { BasicInfo, VehInfo } from "@/store/vipbookingStore";
import request from "./axios";

const api = "/api/v1";

export interface BookingListReqParams {
  userId: string | null;
  passType: string | null;
  vehType: string | null;
  parkingStatus: string | null;
  startDate: string | null;
  endDate: string | null;
  pageNumber: number | null;
  pageSize: number | null;
}

export interface UpdateVIPParams {
  bookld:string;
  basiclnfo:BasicInfo;
  vehlnfo:VehInfo;
}
export const getBookingList = (params: BookingListReqParams) => {
  return request.post(`${api}/booking/getList`, params);
};

//查询VIP Booking
export const getVip = (bookId: string) => {
  return request.get(`${api}/booking/getVip/${bookId}`);
};

//更新VIP Booking

export const updateVIP = (params: UpdateVIPParams) => {
  return request.get(`${api}/booking/updateVIP,params`);
};
